package com.openbravo.ws.customers;

import java.io.Serializable;
import javax.xml.namespace.QName;
import org.apache.axis.description.ElementDesc;
import org.apache.axis.description.TypeDesc;
import org.apache.axis.encoding.Deserializer;
import org.apache.axis.encoding.Serializer;
import org.apache.axis.encoding.ser.BeanDeserializer;
import org.apache.axis.encoding.ser.BeanSerializer;

public class Contact
  implements Serializable
{
  private static final long serialVersionUID = 9809905717175L;
  private String businessPartnerId;
  private String clientId;
  private String email;
  private String fax;
  private String firstName;
  private String id;
  private String lastName;
  private String phone;
  private String phone2;
  private Object __equalsCalc = null;
  private boolean __hashCodeCalc = false;
  private static TypeDesc typeDesc = new TypeDesc(Contact.class, true);

  public Contact()
  {
  }

  public Contact(String paramString1, String paramString2, String paramString3, String paramString4, String paramString5, String paramString6, String paramString7, String paramString8, String paramString9)
  {
    this.businessPartnerId = paramString1;
    this.clientId = paramString2;
    this.email = paramString3;
    this.fax = paramString4;
    this.firstName = paramString5;
    this.id = paramString6;
    this.lastName = paramString7;
    this.phone = paramString8;
    this.phone2 = paramString9;
  }

  public String getBusinessPartnerId()
  {
    return this.businessPartnerId;
  }

  public void setBusinessPartnerId(String paramString)
  {
    this.businessPartnerId = paramString;
  }

  public String getClientId()
  {
    return this.clientId;
  }

  public void setClientId(String paramString)
  {
    this.clientId = paramString;
  }

  public String getEmail()
  {
    return this.email;
  }

  public void setEmail(String paramString)
  {
    this.email = paramString;
  }

  public String getFax()
  {
    return this.fax;
  }

  public void setFax(String paramString)
  {
    this.fax = paramString;
  }

  public String getFirstName()
  {
    return this.firstName;
  }

  public void setFirstName(String paramString)
  {
    this.firstName = paramString;
  }

  public String getId()
  {
    return this.id;
  }

  public void setId(String paramString)
  {
    this.id = paramString;
  }

  public String getLastName()
  {
    return this.lastName;
  }

  public void setLastName(String paramString)
  {
    this.lastName = paramString;
  }

  public String getPhone()
  {
    return this.phone;
  }

  public void setPhone(String paramString)
  {
    this.phone = paramString;
  }

  public String getPhone2()
  {
    return this.phone2;
  }

  public void setPhone2(String paramString)
  {
    this.phone2 = paramString;
  }

  public synchronized boolean equals(Object paramObject)
  {
    if (!(paramObject instanceof Contact))
      return false;
    Contact localContact = (Contact)paramObject;
    if (paramObject == null)
      return false;
    if (this == paramObject)
      return true;
    if (this.__equalsCalc != null)
      return this.__equalsCalc == paramObject;
    this.__equalsCalc = paramObject;
    int i = ((this.businessPartnerId == null) && (localContact.getBusinessPartnerId() == null)) || ((this.businessPartnerId != null) && (this.businessPartnerId.equals(localContact.getBusinessPartnerId())) && (((this.clientId == null) && (localContact.getClientId() == null)) || ((this.clientId != null) && (this.clientId.equals(localContact.getClientId())) && (((this.email == null) && (localContact.getEmail() == null)) || ((this.email != null) && (this.email.equals(localContact.getEmail())) && (((this.fax == null) && (localContact.getFax() == null)) || ((this.fax != null) && (this.fax.equals(localContact.getFax())) && (((this.firstName == null) && (localContact.getFirstName() == null)) || ((this.firstName != null) && (this.firstName.equals(localContact.getFirstName())) && (((this.id == null) && (localContact.getId() == null)) || ((this.id != null) && (this.id.equals(localContact.getId())) && (((this.lastName == null) && (localContact.getLastName() == null)) || ((this.lastName != null) && (this.lastName.equals(localContact.getLastName())) && (((this.phone == null) && (localContact.getPhone() == null)) || ((this.phone != null) && (this.phone.equals(localContact.getPhone())) && (((this.phone2 == null) && (localContact.getPhone2() == null)) || ((this.phone2 != null) && (this.phone2.equals(localContact.getPhone2()))))))))))))))))))) ? 1 : 0;
    this.__equalsCalc = null;
    return i==1;
  }

  public synchronized int hashCode()
  {
    if (this.__hashCodeCalc)
      return 0;
    this.__hashCodeCalc = true;
    int i = 1;
    if (getBusinessPartnerId() != null)
      i += getBusinessPartnerId().hashCode();
    if (getClientId() != null)
      i += getClientId().hashCode();
    if (getEmail() != null)
      i += getEmail().hashCode();
    if (getFax() != null)
      i += getFax().hashCode();
    if (getFirstName() != null)
      i += getFirstName().hashCode();
    if (getId() != null)
      i += getId().hashCode();
    if (getLastName() != null)
      i += getLastName().hashCode();
    if (getPhone() != null)
      i += getPhone().hashCode();
    if (getPhone2() != null)
      i += getPhone2().hashCode();
    this.__hashCodeCalc = false;
    return i;
  }

  public static TypeDesc getTypeDesc()
  {
    return typeDesc;
  }

  public static Serializer getSerializer(String paramString, Class paramClass, QName paramQName)
  {
    return new BeanSerializer(paramClass, paramQName, typeDesc);
  }

  public static Deserializer getDeserializer(String paramString, Class paramClass, QName paramQName)
  {
    return new BeanDeserializer(paramClass, paramQName, typeDesc);
  }

  static
  {
    typeDesc.setXmlType(new QName("/services/WebService", "Contact"));
    ElementDesc localElementDesc = new ElementDesc();
    localElementDesc.setFieldName("businessPartnerId");
    localElementDesc.setXmlName(new QName("", "businessPartnerId"));
    localElementDesc.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
    localElementDesc.setNillable(true);
    typeDesc.addFieldDesc(localElementDesc);
    localElementDesc = new ElementDesc();
    localElementDesc.setFieldName("clientId");
    localElementDesc.setXmlName(new QName("", "clientId"));
    localElementDesc.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
    localElementDesc.setNillable(true);
    typeDesc.addFieldDesc(localElementDesc);
    localElementDesc = new ElementDesc();
    localElementDesc.setFieldName("email");
    localElementDesc.setXmlName(new QName("", "email"));
    localElementDesc.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
    localElementDesc.setNillable(true);
    typeDesc.addFieldDesc(localElementDesc);
    localElementDesc = new ElementDesc();
    localElementDesc.setFieldName("fax");
    localElementDesc.setXmlName(new QName("", "fax"));
    localElementDesc.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
    localElementDesc.setNillable(true);
    typeDesc.addFieldDesc(localElementDesc);
    localElementDesc = new ElementDesc();
    localElementDesc.setFieldName("firstName");
    localElementDesc.setXmlName(new QName("", "firstName"));
    localElementDesc.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
    localElementDesc.setNillable(true);
    typeDesc.addFieldDesc(localElementDesc);
    localElementDesc = new ElementDesc();
    localElementDesc.setFieldName("id");
    localElementDesc.setXmlName(new QName("", "id"));
    localElementDesc.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
    localElementDesc.setNillable(true);
    typeDesc.addFieldDesc(localElementDesc);
    localElementDesc = new ElementDesc();
    localElementDesc.setFieldName("lastName");
    localElementDesc.setXmlName(new QName("", "lastName"));
    localElementDesc.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
    localElementDesc.setNillable(true);
    typeDesc.addFieldDesc(localElementDesc);
    localElementDesc = new ElementDesc();
    localElementDesc.setFieldName("phone");
    localElementDesc.setXmlName(new QName("", "phone"));
    localElementDesc.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
    localElementDesc.setNillable(true);
    typeDesc.addFieldDesc(localElementDesc);
    localElementDesc = new ElementDesc();
    localElementDesc.setFieldName("phone2");
    localElementDesc.setXmlName(new QName("", "phone2"));
    localElementDesc.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
    localElementDesc.setNillable(true);
    typeDesc.addFieldDesc(localElementDesc);
  }
}

/* Location:           D:\PowerFulPOS-2.30.2\openbravopos.jar
 * Qualified Name:     com.openbravo.ws.customers.Contact
 * JD-Core Version:    0.6.0
 */